package com.softtown.modules.dapai.dao;

import com.softtown.common.dao.BaseDao;
import com.softtown.modules.dapai.dto.CompMacDTO;
import com.softtown.modules.dapai.dto.CompMacDetailDTO;
import com.softtown.modules.dapai.entity.CompMacEntity;
import com.softtown.modules.dapai.entity.CompMacScrewEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface CompMacDao extends BaseDao<CompMacEntity> {

    List<CompMacDTO> getMacPageList(@Param("compId")Long compId,@Param("pram") String pram );

    List<CompMacDTO> listForMac(@Param("compId")Long compId, @Param("pram") String pram, @Param("macTypeId")Long macTypeId );

    CompMacEntity getMacById(@Param("compId")Long compId, @Param("id")Long id);

    List<CompMacScrewEntity> getMacDetailList(@Param("compId")Long compId, @Param("id")Long id);

    void deleteMac(@Param("compId")Long compId, @Param("id")Long id);

    void deleteDetail(@Param("compId")Long compId, @Param("id")Long id);

}
